package thread;

/*
 * @author zzr
 * @date: 2025/04/15  16:15
 * @description:
 */
public class Thread12 {
    public static void main(String[] args) {
        Object locker = new Object();

        Thread t = new Thread(() -> {

            synchronized (locker) {
                synchronized (locker) {
                    System.out.println("hello thread");
                }
            }
        });

        t.start();

    }
}
